package com.ytf.test.fifth;

/**
 * @author: YTF
 * @date: 2024/9/18 10:55
 * @version: 1.0
 * @description:
 */
public class Rock {
    public Rock() {
        System.out.println("Rock ");
    }

    public Rock(int i) {
        System.out.println("Rock "+i);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10 ; i++) {
            // new Rock();
            new Rock(i);
        }
        /**
         * Output:
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock
         * Rock 0
         * Rock 1
         * Rock 2
         * Rock 3
         * Rock 4
         * Rock 5
         * Rock 6
         * Rock 7
         * Rock 8
         * Rock 9
         */
    }
}
